#include "GameState.h"

HelpScreen::HelpScreen():IGameState()
{
	m_stateType = EScreenType::SETTING_SCREEN;
	backgroud = new CSprite(ResourceManager::GetIns()->GetBackGround(Help));
}

HelpScreen::~HelpScreen()
{
	Release();
}

void HelpScreen::Create()
{

}

void HelpScreen::Release()
{
}

void HelpScreen::HandleInput(CInput* input,float dt)
{
	if(input->IsKeyPress(DIK_BACKSPACE) || input->IsKeyPress(DIK_RETURN))
	{
		ExitSceen();
	}
}

void HelpScreen::Update(float dt)
{
	
}

void HelpScreen::Draw()
{
	D3DXMATRIX matrix;
	D3DXMatrixIdentity(&matrix);
	GL_graphic->m_pSpriteHandler->SetTransform(&matrix);
	backgroud->Draw(D3DXVECTOR2(400,300),SpriteEffect::Vertical,0,1);
}
